MuleSoft Accelerator for Salesforce B2C Commerce Cloud
SAP Custom BAPI setup guide - Customer sync
The following provides guidance on how to use the custom BAPI code (ZBAPI_CUSTOMER
) for your SAP instance.
Important: You must complete the following instructions before proceeding to Use case 5 - Customer sync.
BAPI custom objects
You must create the following ABAP objects in order to use this custom BAPI, which are described below.
Data elements:
Z_CC_CUSTNUMB
Structures
ZES_CUSTOMER
Table types:
ZTY_CUSTOMER
Transparent tables
ZTT_CUSTOMER
Function group:
ZFG_CUSTOMER
Function modules:
ZBAPI_CUSTOMER
ZBAPI_CUSTOMER_CREATE
ZBAPI_CUSTOMER_CUSTOM_FIELDS
ZBAPI_CUSTOMER_UPDATE
ZBAPI_QUERY
Creating data elements
Object | How to create |
---|---|
Z_CC_CUSTNUMB |
Creating structures
Object | How to create |
---|---|
ZES_CUSTOMER |
Creating table types
Object | How to create |
---|---|
ZTY_CUSTOMER |
Creating transparent tables
Object | How to create |
---|---|
ZTT_CUSTOMER |
Creating function groups and function modules
- Create the function group "ZFG_CUSTOMER".
- Create the function module "ZBAPI_CUSTOMER", using "Remote-enable module" as processing type:
- Complete the import parameters with the following:
- Complete the export parameters with the following:
- Copy and paste the code from "ZBAPI_CUSTOMER.txt".
- Create the function module "ZBAPI_CUSTOMER_CREATE":
- Complete the import parameters with the following:
- Complete the export parameters with the following:
- Copy and paste the code from "ZBAPI_CUSTOMER_CREATE.txt".
- Create the function module "ZBAPI_CUSTOMER_CUSTOM_FIELDS":
- Complete the import parameters with the following:
- Copy and paste the code from "ZBAPI_CUSTOMER_CUSTOM_FIELDS.txt".
- Create the function module "ZBAPI_CUSTOMER_UPDATE":
- Complete the import parameters with the following:
- Complete the export parameters with the following:
- Copy and paste the code from "ZBAPI_CUSTOMER_UPDATE.txt".
- Create the function module "ZBAPI_QUERY", using "Remote-enable module" as processing type:
- Complete the import parameters with the following:
- Complete the export parameters with the following:
- Copy and paste the code from "ZBAPI_QUERY.txt".
- Activate the entire function group by right-clicking on it in the tree and then selecting "Activate":